<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-transform" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>新闻中心——详情</title>

		<link rel="shortcut icon" href="img/favicon.ico" /> 

		<link rel="stylesheet" href="css/min.css">
		<link rel="stylesheet" href="css/project_show.css">
		<link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
		<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

		<!--[if lt IE 10]>
			<link rel="stylesheet" href="css/min.css">
			<link rel="stylesheet" href="css/ie.css">
			<script src="https://js.easytransfer.cn/js/main/lib/vendor/html5shiv.js"></script>
			<script src="https://js.easytransfer.cn/js/main/lib/vendor/respond.min.js"></script>
			<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
			<script src="js/min.js"></script>
			
			
		<![endif]-->

		<!--[if lt IE 9]>
			<link rel="stylesheet" href="css/min.css">
			<link rel="stylesheet" href="css/ie.css">
			<link rel="stylesheet" href="css/minie78.css">
			<script src="https://js.easytransfer.cn/js/main/lib/vendor/html5shiv.js"></script>
			<script src="https://js.easytransfer.cn/js/main/lib/vendor/respond.min.js"></script>
			<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
			<script src="js/min.js"></script>
		<![endif]-->

	</head>
	<body>
		<!-- 头部导航 -->
		<div class="headerpage"></div>

		<div class="bodyBox">
			
		<!-- 	<div>
				<img src="img/yd/xiangmu/xiangmu_banner.jpg" class="project_banner">
			</div> -->
			<div>
				<!-- <img src="img/yd/xiangmu/xiangmu_banner.jpg" class="project_banner"> -->
				<img src="img/top.jpg" class="project_banner hidden-xs">
				<img src="img/yd/xiangmu/xiangmu_banner.jpg" class="project_banner visible-xs-block">
			</div> 
			<div class="case_particulars hidden-xs">
				当前所在位置：德泰动态 > 正文
			</div>
			
			<div class="case_show particularsBox"> 
				<div class="case_show_top">
					<h3></h3>
					<div class="title">日期：</div>
					<div class="straight">
					<!-- 	<p>海尔洲际酒店位于青岛奥林匹克帆船中心内，占地约6万平方米，是青岛目前为止最高档、装修标准最高的超五星级酒店，是中国奥运酒店项目中单体装修额度最高的，预创下中国单体项目装修标准新高的最大手笔的项目。
						山东德泰装饰有限公司承建了该装饰装修工程的S6、S8标段。 </p>
							 -->
					</div>
					<div class="piece hidden-xs">
						<!-- <div class="last">上一篇：喜报！德泰建设行业百强再攀新高，跃居全国第二十五名！</div> -->
						<!-- <div>下一篇：德泰团建丨同心协力，携手并进</div> -->
					</div>
				</div>
				
				
			</div>
		</div>
		
		<!-- 底部关于我们 -->
		<div class="footer"></div>
	</body>
	<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
	<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/pageMe.js?v=1"></script>
	<!-- <script src="js/project_show.js"></script> -->
	<script src="js/min.js"></script>
	<script type="text/javascript">
		var searchUrl = window.location.href;
		var id = searchUrl.split("=")[1]; //截取 url中的“=”,获得“=”后面的参数
		// console.log(id)
		newsDetails(id)
		function newsDetails(id) {
			$(".case_show_top h3").empty();
			$(".case_show_top .title").empty();
			$(".case_show_top .straight").empty();
			$(".piece").empty();
			$(".piece").empty();
			$.ajax({
				type: 'POST',
				url: urlBox+'/api/newsDetails/',
				data:{
					id: id,
				},
				dataType: 'json',
				success: function(res) {
					var list = res.news_info
					console.log(list)
					$(".case_show_top h3").append(list.details.title);
					$(".case_show_top .title").append('日期：'+list.details.create_time);
					$(".case_show_top .straight").append(list.details.article);
					if (list.last_news != undefined) {
						var div =$('<div onclick="article('+list.last_news.id+')">上一篇：'+list.last_news.title+'</div>')
						$(".piece").append(div);
					}
					if (list.next_news != undefined){
						var next =$('<div onclick="article ('+list.next_news.id+')">下一篇：'+list.next_news.title+'</div>')
						$(".piece").append(next);
					}
				}
					
			})
		}
		function article(id){
			$(document).scrollTop(200);
			newsDetails(id)
		}
		
	</script>
</html>
